#include "demo_app.h"

LV_IMG_DECLARE(IMG1)

void create_demo_app(void)
{
    lv_obj_t *scr = lv_scr_act();
    lv_obj_remove_style_all(scr);

    lv_obj_set_style_bg_img_src(scr, &IMG1, LV_PART_MAIN);
    lv_obj_set_style_bg_opa(scr, LV_OPA_COVER, LV_PART_MAIN);

    // lv_obj_set_style_bg_color(scr, lv_color_hex(0xff0000), LV_PART_MAIN);
    // lv_obj_set_style_bg_opa(scr, LV_OPA_COVER, LV_PART_MAIN);

    // lv_obj_t *center_obj = lv_obj_create(scr);
    // lv_obj_remove_style_all(center_obj);
    // lv_obj_set_size(center_obj, lv_pct(80), lv_pct(80));
    // lv_obj_set_align(center_obj, LV_ALIGN_CENTER);
    // lv_obj_set_style_bg_color(center_obj, lv_color_hex(0xffffff), LV_PART_MAIN);
    // lv_obj_set_style_bg_opa(center_obj, LV_OPA_50, LV_PART_MAIN);
    // lv_obj_set_style_radius(center_obj, 7, LV_PART_MAIN);
    // lv_obj_set_style_border_width(center_obj, 2, LV_PART_MAIN);
    // lv_obj_set_style_border_opa(center_obj, LV_OPA_100, LV_PART_MAIN);
    // lv_obj_set_style_border_side(center_obj, LV_BORDER_SIDE_FULL, LV_PART_MAIN);
    // // lv_obj_set_style_border_color(center_obj, lv_color_hex(0xffffff), LV_PART_MAIN);

    // lv_obj_t *label = lv_label_create(center_obj);
    // lv_label_set_text(label, "10:40");
    // lv_obj_set_style_text_font(label, &lv_font_montserrat_48, LV_PART_MAIN);
    // lv_obj_set_align(label, LV_ALIGN_CENTER);
    // lv_obj_align(label, LV_ALIGN_CENTER, 0, -200);
    // lv_obj_set_style_text_color(label, lv_color_white(), LV_PART_MAIN);
}